package demo2.domain.mapper;

import demo2.domain.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Optional;

@Mapper
public interface StudentMapper {
    List<Student> findWithinLimit(Long firstId, Integer pageSizeLimit);

    @Select("Select id, name, dob from sys_student")
    List<Student> findAll();

    Optional<Student> findById(Long id);

    int modify(Student student);

    void create(Student student);
}
